package com.distribute.captcha;

import java.time.LocalDateTime;

public class ValidateCode implements java.io.Serializable{
	  
	private static final long serialVersionUID = -7486088968710009786L;

	private String code;  
  
    private LocalDateTime expireTime;  
    
    public ValidateCode(String code, int expireTime) {  
        this.code = code;  
        this.expireTime = LocalDateTime.now().plusSeconds(expireTime);  
    }  
  
    public ValidateCode(String code, LocalDateTime expireTime) {  
        this.code = code;  
        this.expireTime = expireTime;  
    }  
  
    public String getCode() {  
        return code;  
    }  
  
    public void setCode(String code) {  
        this.code = code;  
    }  
  
    public LocalDateTime getExpireTime() {  
        return expireTime;  
    }  
  
    public void setExpireTime(LocalDateTime expireTime) {  
        this.expireTime = expireTime;  
    }  
  
}
